From: Richard M. Stallman Date: Mon, 28 Jun 1993 00:56:54 +0000 (+0000) Subject: (vc-update-change-log): Restore previous default-directory X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~95155 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=41dfb835db8a0c12fb7a03d484b8c7a9a7335f24;p=emacs.git (vc-update-change-log): Restore previous default-directory for running rcs2log. --- diff --git a/lisp/vc.el b/lisp/vc.el index b48e3bf07d4..27490df9b9d 100644 --- a/lisp/vc.el +++ b/lisp/vc.el @@ -1129,16 +1129,18 @@ From a program, any arguments are passed to the `rcs2log' script." (setq files (cons (file-relative-name file) files))) (setq buffers (cdr buffers))) files)))) - (find-file-other-window (find-change-log)) - (barf-if-buffer-read-only) - (vc-buffer-sync) - (undo-boundary) - (goto-char (point-min)) - (push-mark) - (message "Computing change log entries...") - (message "Computing change log entries... %s" - (if (eq 0 (apply 'call-process "rcs2log" nil t nil args)) - "done" "failed"))) + (let ((odefault default-directory)) + (find-file-other-window (find-change-log)) + (barf-if-buffer-read-only) + (vc-buffer-sync) + (undo-boundary) + (goto-char (point-min)) + (push-mark) + (message "Computing change log entries...") + (let ((default-directory odefault)) + (message "Computing change log entries... %s" + (if (eq 0 (apply 'call-process "rcs2log" nil t nil args)) + "done" "failed"))))) ;; Functions for querying the master and lock files.